public class StarOutput {
    /**The program is built for print matrix of star,the output is :
    
    *
    * * *
    * * * * *
    * * * * * * *
    * * * * *
    * * *
    *  
    
    */

    public static void main(String[] args){

        StarOutput staroutput = new StarOutput();
        staroutput.Star();
    }

    public void Star(){
        for(int i = 1;i < 5;i++){
            for(int j=0;j < 2*i-1;j++){
                System.out.print("* ");
            }
            System.out.println("");
        }

        for(int m = 3;m > 0; m--){
            for(int n=0;n<2*m-1;n++){
                System.out.print("* ");
            }
            System.out.println("");
        }
    }
    
}